from Base.Base import Base
from selenium.webdriver.common.by import By

class Page(Base):
    user=(By.XPATH,'//*[@id="el-id-8429-1"]')
    def username(self):
        self.send_keys(self.user,'zhangsan')
    pwd=(By.XPATH,'//*[@id="el-id-8429-2"]')
    def password(self):
        self.send_keys(self.pwd,'123456')
    btn=(By.XPATH,'//*[@id="app"]/div/section/section/main/div[1]/div[2]/button[2]')
    def denglu(self):
        self.click(self.btn)